Template:Main: Difference between revisions
From Postal Wiki
m fix error |
m fix error |
||
| Line 1: | Line 1: | ||
<includeonly>:Main{{#switch:{{NAMESPACENUMBER:{{{1}}}}}|0= Item|14= Category|Page}} | <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": { | ||
| Line 12: | Line 12: | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||
[[zh:模板:Main]] | |||
Revision as of 06:40, 1 November 2025
This template is used for creating a link to a designated item or category.
Structure
{{Main|Parameter1|Parameter2}}
- Parameter1 is the name of item or category.
- 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}}
{{Main|Category:Template Document}}
- MainCategory: Category:Template Document
{{Main|Wiki:About}}
- MainPage: Wiki:About
Reference
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Name of Item or Category | Unknown | required |
| 2 | 2 | Alternative Text | Unknown | optional |
