Wikipedia:Portal: Difference between revisions

Content deleted Content added
Existing Wikiportals: fill in EU details
How to create a new portal?: use new Portal: namespace
Line 425:
To create a new portal on the topic "Topic" follow these steps:
 
1. Create a new portal at <nowiki>[[WikipediaPortal:Wikiportal/Topic]]</nowiki> (where "Topic" is the subject of your portal) and enter the following text
<nowiki>{{subst:box portal skeleton| topic=Topic}}</nowiki>
Save.
 
2. Create two subpages:
a) [[WikipediaPortal:Wikiportal/Topic/box-header]] with the following text
 
<nowiki>{{Wikipedia:Wikiportal/box-header | title={{{1}}}</nowiki>
Line 441:
Save.
 
and b) [[WikipediaPortal:Wikiportal/Topic/box-footer]] with the text
<nowiki>{{Wikipedia:Wikiportal/box-footer | {{{1}}} }}</nowiki>
Save.
 
3. Return to your portal page [[WikipediaPortal:Wikiportal/Topic]] and begin editing (general instructions on editing a portal are below). Basically follow the red links to create sub-pages that will fill the boxes.
 
4. Place a link to your portal at the top of the appropriate article (of the same name) by placing a {{tl|portal}} there, or place {{tl|portalpar}} at other various pages. List your portal at {{tl|portals}} and {{tl|main portals}}
Line 456:
 
====Adding a section (box)====
If you wish to add a section (box) using the regular codes, go to your portal page (e.g. [http://en.wikipedia.org/w/index.php?title=WikipediaPortal:Wikiportal/Computer_and_video_games&action=edit]) and simply type in:
 
<pre>
Line 467:
* '''"1"''' is the box title
* '''"2"''' is the article to be linked to via [[Template:Ed2]]. This will appear right under the title bar. You may omit this parameter if you don't want an edit link to appear, but you must not omit the pipe, for example:
** <tt><nowiki>{{/box-header | Featured article | Wikipedia{{Portal:Wikiportal/Computer and video games/Featured}}</nowiki></tt>
** <tt><nowiki>{{/box-header | Featured article | }}</nowiki></tt> ''(no edit link param, note pipe still in place)''
* '''"3"''' is again the article to be linked to (this will appear as a red link until first edited), for example:
** <tt><nowiki>{{Wikipedia:Wikiportal/Computer and video games/Featured}}</nowiki></tt>
* '''"4"''' is a link that you'd like to display at the bottom-right corner of the box. You may omit this parameter if you don't want an edit link to appear, but you must not omit the pipe, for example:
** <tt><nowiki>{{/box-footer | [[Computer and video games|More about Computer and video games...]]}}</nowiki></tt>
Line 480:
 
<nowiki><div style="float:right; width:50%;"></nowiki>
'''<nowiki>{{/box-header|A random title|WikipediaPortal:Wikiportal/Computer_and_video_gamesComputer and video games/Featured}}</nowiki>'''
<nowiki>{{Wikipedia:Wikiportal/Computer_and_video_games/Featured}}</nowiki>
'''<nowiki>{{/box-footer|[[Computer and video games|More about Computer and video games...]]}}</nowiki>'''
<nowiki></div></nowiki>
Line 488:
 
<div style="float:right; width:50%;">
{{WikipediaPortal:Wikiportal/Computer and video games/box-header|A random title|WikipediaPortal:Wikiportal/Computer_and_video_gamesComputer and video games/Featured}}
{{WikipediaPortal:Wikiportal/Computer_and_video_gamesComputer and video games/Featured}}
{{WikipediaPortal:Wikiportal/Computer and video games/box-footer|[[Computer and video games|More about Computer and video games...]]}}
</div>
 
Line 516:
 
The exact same code, used at other portals, will create a box with the exact same content, but the colors may be completely different. This is because each portal has templates at:
# "[portal url]/box-header" (e.g. [http://en.wikipedia.org/w/index.php?title=WikipediaPortal:Wikiportal/Computer_and_video_games/box-header&action=edit])
# "[portal url]/box-footer" (e.g. [http://en.wikipedia.org/w/index.php?title=WikipediaPortal:Wikiportal/Computer_and_video_games/box-footer&action=edit])
that add color information, and the pass all the work along to the [[:Wikipedia:Wikiportal/box-header]] and [[:Wikipedia:Wikiportal/box-footer]] templates, which compose everything into a standards-compliant and cross-browser box.