Difference between revisions of "Template:Semorg-generator"

From SemanticOrganization
Jump to: navigation, search
Line 160: Line 160:
 
Add the following line to <code>LocalSettings.php</code>:
 
Add the following line to <code>LocalSettings.php</code>:
  
  $wgSemorgAdditionalFeatureProperties['{{lc:{{FULLPAGENAME}}}}'] = {{#ask:[[{{FULLPAGENAME}}]]
+
  $wgSemorgAdditionalFeatureProperties['{{lc:{{FULLPAGENAME}}}}'] = <nowiki>[</nowiki> "id" => "{{{?template-id|}}}","fields" => <nowiki>[</nowiki>{{#ask:[[Semorg-generator-field-template::{{{?template|}}}]][[Semorg-generator-field-property-id::+]]
  |mainlabel=template
+
      |mainlabel=field
  |?semorg-generator-template-id=template-id
+
      |?Semorg-generator-field-id=field-id
  |?semorg-generator-template-name=template-name
+
      |?Semorg-generator-field-property-id=field-property-id
  |link=none
+
      |?Semorg-generator-field-type=field-type
  |named args=yes
+
      |named args=yes
  |format=template
+
      |template=semorg-generator-register-property-field
  |template=semorg-generator-register-property
+
      |format=template
  |limit=1000
+
      }} <nowiki>]</nowiki> <nowiki>]</nowiki>;
}};
 
  
 
</includeonly>
 
</includeonly>

Revision as of 10:59, 1 March 2021

This page is part of the Semantic Organization extension.

If you want to customize this template you can copy its contents to another page (use for example Template:Semorg-generator-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-generator-template