Template:IfMainNS
From Wiki Aventurica
Explanation
[edit source]This template checks whether it is used in the main/article namespace. If yes, the code in the first parameter is executed, if no, the code in the second parameter is executed, if it exists.
Code
[edit source]{{IfMainNS|<code in ANS>}}
{{IfMainNS|<code in the ANS>|<code outside the ANS>}}