Template:Main: Difference between revisions

From Postal Wiki
Xiao John (talk | contribs)
Create
 
Xiao John (talk | contribs)
m fix error
Line 1: Line 1:
<includeonly>:Main{{#switch:{{NAMESPACENUMBER:{{{1}}}}}|0=item|14=category|page}}:{{#ifeq:{{NAMESPACENUMBER:{{{1}}}}}|14|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{{1}}}}}}]]}}</includeonly><noinclude>{{doc}}<templatedata>
<includeonly>:Main{{#switch:{{NAMESPACENUMBER:{{{1}}}}}|0= Item|14= Category|Page}}:{{#ifeq:{{NAMESPACENUMBER:{{{1}}}}}|14|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|[[{{{1}}}|{{{2|{{{1}}}}}}]]}}</includeonly><noinclude>{{doc}}<templatedata>
{
{
"params": {
"params": {
"1": {
"1": {
"description": "Name of item or category",
"description": "Name of Item or Category",
"required": true
"required": true
},
},
"2": {
"2": {
"description": "Alternative text"
"description": "Alternative Text"
}
}
}
}
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 06:31, 1 November 2025

Template documentation  [View] [Edit] [History] [Refresh]

This template is used for creating a link to a designated item or category.

Structure

{{Main|Parameter1|Parameter2}}

  1. Parameter1 is the name of item or category.
  2. Parameter2 is the alternative text. If empty, it will display content in Parameter1.

Example

{{Main|List of Currently Effective Postal-Related Rules and Regulations in P.R.C.|List of Postal-Related Rules and Regulations}}

MainItem:List of Postal-Related Rules and Regulations

{{Main|Category:Template Document}}

MainCategory:Category:Template Document

{{Main|Wiki:About}}

MainPage:Wiki:About

Reference

wen:Template:Main

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Name of Item or Category

Unknownrequired
22

Alternative Text

Unknownoptional