Template:When on basepage/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
Adding {{high-risk| 350,000+ }} at top of documentation since this template now is very widely used.
meta>Howboutnoooominime
yelp.com must be stopped
Line 1: Line 1:
{{documentation subpage}}
yelp.com has hurt MANY businesses with their slander and unethical business model. If you are a business who refuses to pay them large advertising fees, they see to it that your business is slandered. If you have all good reviews on their site, they will write a bad one and "filter the good ones", or they will remove you. If you have any bad reviews, they will remove all of your good ones, and leave only the bad. In short, if you refuse to pay them they will hurt you in an effort to bully you in to paying them. Many businesses are taking yelp to court. They MUST be stopped. In these struggling times, it is hard enough for honest companies to survive. Evil and unethical companies like Yelp are hurting businesses of all types. How much longer will this go on? Join the fight against Yelp. Has your business been hurt by them? There are many articles about this all over the web. Hopefully someone will stop them soon.
{{high-risk| 350,000+ }}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
This is the {{tl|basepage subpage}} meta-template.
 
This template helps other templates detect if they are on a '''basepage''', '''subpage''' or '''subsubpage'''.
 
=== Usage ===
 
This template takes one or more parameters, like this:
<pre>
{{basepage subpage
| Basepage text
| Subpage text
}}
</pre>
 
If the template is on the page "User:Example", it will return this:
 
:{{basepage subpage
| Basepage text
| Subpage text
| page = User:Example
}}
 
If the template is on "User:Example/test" or "User:Example/test/test" or any page lower than that, it will return this:
 
:{{basepage subpage
| Basepage text
| Subpage text
| page = User:Example/test/test
}}
 
This template can also detect "subsubpages", like this:
 
<pre>
{{basepage subpage
| Basepage text
| Subpage text
| Subsubpage text
}}
</pre>
 
If the template is on "User:Example/test/test" or any page lower than that, it will return this:
 
:{{basepage subpage
| Basepage text
| Subpage text
| Subsubpage text
| page = User:Example/test/test
}}
 
By using an empty parameter you can make it so the template doesn't render anything for some specific page type. Like this:
 
<pre>
{{basepage subpage
| Basepage text
| Subpage text
|
}}
</pre>
 
The code above will render nothing when on "User:Example/test/test" or lower, but will return this when on "User:Example/test":
 
:{{basepage subpage
| Basepage text
| Subpage text
|
| page = User:Example/test
}}
 
=== The "page" parameter ===
 
For testing and demonstration purposes this template can take a parameter named '''page'''. Like this:
 
<pre>
{{basepage subpage
| Basepage text
| Subpage text
| page = User:Example/test
}}
</pre>
 
No matter on what kind of page the code above is used it will return this:
 
:{{basepage subpage
| Basepage text
| Subpage text
| page = User:Example/test
}}
 
The '''page''' parameter makes this template behave exactly as if on that page. Thus, if a subsubpagename like "User:Example/test/test" is fed, then it returns the subsubpage text if there is one, otherwise it returns the subpage text.
 
The pagename doesn't have to be an existing page.  
 
If the parameter is empty or undefined, the name of the current page determines the result.
 
You can make it so your template also understands the '''page''' parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:
 
<pre>
{{basepage subpage
| Basepage text
| Subpage text
| page = {{{page|}}}
}}
</pre>
 
=== Technical details ===
 
Templates have a problem to handle parameter data that contains equal signs "<code>=</code>". But that is easily solved by using numbered parameters. Like this:
 
<pre>
{{basepage subpage
| 1 = Basepage text
| 2 = Subpage text
| 3 = Subsubpage text
| page = {{{page|}}}
}}
</pre>
 
This template detects subpages even when used in namespaces that doesn't have the MediaWiki [[meta:Link#Subpage feature|subpage feature]] enabled. Thus this template works the same in all namespaces.
 
=== See also ===
 
{{pagename detect see also}}
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia metatemplates]]
 
</includeonly>

Revision as of 02:39, 4 October 2011

yelp.com has hurt MANY businesses with their slander and unethical business model. If you are a business who refuses to pay them large advertising fees, they see to it that your business is slandered. If you have all good reviews on their site, they will write a bad one and "filter the good ones", or they will remove you. If you have any bad reviews, they will remove all of your good ones, and leave only the bad. In short, if you refuse to pay them they will hurt you in an effort to bully you in to paying them. Many businesses are taking yelp to court. They MUST be stopped. In these struggling times, it is hard enough for honest companies to survive. Evil and unethical companies like Yelp are hurting businesses of all types. How much longer will this go on? Join the fight against Yelp. Has your business been hurt by them? There are many articles about this all over the web. Hopefully someone will stop them soon.