Template:Portal/doc: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(→Image: clean up, typos fixed: then then → then) |
||
Line 33: | Line 33: | ||
=== Image === | === Image === | ||
The portal image names are stored in subpages of [[Module:Portal/images]], organised by the first letter of the portal name. For example, the first letter of [[Portal:Fishing]] is "F", so the image name is stored at [[Module:Portal/images/f]]. If there is an entry for a portal on the correct page | The portal image names are stored in subpages of [[Module:Portal/images]], organised by the first letter of the portal name. For example, the first letter of [[Portal:Fishing]] is "F", so the image name is stored at [[Module:Portal/images/f]]. If there is an entry for a portal on the correct page then the corresponding image will be shown next to the portal link. If no image is found then [[:File:Portal-puzzle.svg]] will be shown instead. | ||
It is also possible to specify aliases for portal images. For example, the code {{tlx|portal|Detroit}} produces the same image as the code {{tlx|portal|Metro Detroit}}. The "Detroit" alias is found on the page [[Module:Portal/images/aliases]]. | It is also possible to specify aliases for portal images. For example, the code {{tlx|portal|Detroit}} produces the same image as the code {{tlx|portal|Metro Detroit}}. The "Detroit" alias is found on the page [[Module:Portal/images/aliases]]. | ||
Line 39: | Line 39: | ||
The image-detection algorithm is case-insensitive. For example, the code {{tlx|portal|Detroit}} will produce the same image as the code {{tlx|portal|detroit}} (although the portal links will be different). Portal names are stored in lower case in the image subpages, and input is converted to lower case before being checked. | The image-detection algorithm is case-insensitive. For example, the code {{tlx|portal|Detroit}} will produce the same image as the code {{tlx|portal|detroit}} (although the portal links will be different). Portal names are stored in lower case in the image subpages, and input is converted to lower case before being checked. | ||
To add new images to the list, please <span class="plainlinks">[https://en.wikipedia.org/w/index.php?title=Template_talk:Portal&action=edit&preload=Template:Edit_protected/preload&editintro=Template:Edit_protected/editintro&preloadtitle=Image+edit+request+on+{{CURRENTDAY}}+{{CURRENTMONTHNAME}}+{{CURRENTYEAR}}§ion=new make a protected edit request at Template talk:Portal]</span> to get an administrator to edit the correct subpage for you. Portal images must be either in the public domain or available under a [[ | To add new images to the list, please <span class="plainlinks">[https://en.wikipedia.org/w/index.php?title=Template_talk:Portal&action=edit&preload=Template:Edit_protected/preload&editintro=Template:Edit_protected/editintro&preloadtitle=Image+edit+request+on+{{CURRENTDAY}}+{{CURRENTMONTHNAME}}+{{CURRENTYEAR}}§ion=new make a protected edit request at Template talk:Portal]</span> to get an administrator to edit the correct subpage for you. Portal images must be either in the public domain or available under a [[SV:ICTIC|free license]] that allows commercial reuse and derivative works; [[Wikipedia:Non-free content|fair-use]] images are not acceptable. | ||
{{cot|List of image subpages}} | {{cot|List of image subpages}} |