Template:Simp: Difference between revisions

Template page
test |title= parameter
Tag: wikieditor
mNo edit summary
Tag: wikieditor
 
Line 2: Line 2:
==Usage==
==Usage==
Simple Import (Simp) – previously Spell Import – conveniently import a page with basic formatting.
Simple Import (Simp) – previously Spell Import – conveniently import a page with basic formatting.
   <nowiki>{{simp|page}}</nowiki>
   <nowiki>{{simp|page}}</nowiki>
   <nowiki>{{simp|page|nobar=top bot</nowiki>
   <nowiki>{{simp|page|nobar=top bot</nowiki>
===Important===
===Important===
To remove the bars use a combination of <code>top</code> and <code>bot</code> separated by a space with the <code>|nobar</code> parameter, i.e. <code>|nobar=top bot</code>.
To remove the bars use a combination of <code>top</code> and <code>bot</code> separated by a space with the <code>|nobar</code> parameter, i.e. <code>|nobar=top bot</code>.
Override the title by using the <code>|title=</code> parameter.


===Example===
===Example===
<code><nowiki>{{simp|Metallic Oxidation}}</nowiki></code>
<code><nowiki>{{simp|Metallic Oxidation}}</nowiki></code>
</noinclude><includeonly>{{#ifexpr:{{#count:{{{nobar|}}}|top}} > 0 ||----}}
</noinclude><includeonly>{{#ifexpr:{{#count:{{{nobar|}}}|top}} > 0 ||----}}
===[[{{{title|{{{1}}}}}}]]===
===[[{{{1}}}|{{{title|{{{1}}}}}}]]===
{{:{{{1}}}}}
{{:{{{1}}}}}
{{#ifexpr:{{#count:{{{nobar|}}}|bot}} > 0 ||----}}</includeonly>
{{#ifexpr:{{#count:{{{nobar|}}}|bot}} > 0 ||----}}</includeonly>

Latest revision as of 11:52, 31 March 2023

Usage

Simple Import (Simp) – previously Spell Import – conveniently import a page with basic formatting.

 {{simp|page}}
 {{simp|page|nobar=top bot

Important

To remove the bars use a combination of top and bot separated by a space with the |nobar parameter, i.e. |nobar=top bot.

Override the title by using the |title= parameter.

Example

{{simp|Metallic Oxidation}}