Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -7794,11 +7794,46 @@ |
7795 | 7795 | !! end |
7796 | 7796 | |
7797 | 7797 | !! test |
7798 | | -Verify that displaytitle works (bug #22501) |
| 7798 | +Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false |
7799 | 7799 | !! options |
7800 | 7800 | showtitle |
| 7801 | +title=[[Screen]] |
| 7802 | +!! config |
| 7803 | +wgRestrictDisplayTitle=false |
7801 | 7804 | !! input |
7802 | 7805 | this is not the the title |
| 7806 | +{{DISPLAYTITLE:whatever}} |
| 7807 | +!! result |
| 7808 | +whatever |
| 7809 | +<p>this is not the the title |
| 7810 | +</p> |
| 7811 | +!! end |
| 7812 | + |
| 7813 | +!! test |
| 7814 | +Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch |
| 7815 | +!! options |
| 7816 | +showtitle |
| 7817 | +title=[[Screen]] |
| 7818 | +!! config |
| 7819 | +wgRestrictDisplayTitle=true |
| 7820 | +!! input |
| 7821 | +this is not the the title |
| 7822 | +{{DISPLAYTITLE:whatever}} |
| 7823 | +!! result |
| 7824 | + |
| 7825 | +<p>this is not the the title |
| 7826 | +</p> |
| 7827 | +!! end |
| 7828 | + |
| 7829 | +!! test |
| 7830 | +Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching |
| 7831 | +!! options |
| 7832 | +showtitle |
| 7833 | +title=[[Screen]] |
| 7834 | +!! config |
| 7835 | +wgRestrictDisplayTitle=true |
| 7836 | +!! input |
| 7837 | +this is not the the title |
7803 | 7838 | {{DISPLAYTITLE:screen}} |
7804 | 7839 | !! result |
7805 | 7840 | screen |
— | — | @@ -7806,6 +7841,39 @@ |
7807 | 7842 | </p> |
7808 | 7843 | !! end |
7809 | 7844 | |
| 7845 | +!! test |
| 7846 | +Verify that displaytitle works (bug #22501) AllowDisplayTitle=false |
| 7847 | +!! options |
| 7848 | +showtitle |
| 7849 | +title=[[Screen]] |
| 7850 | +!! config |
| 7851 | +wgAllowDisplayTitle=false |
| 7852 | +!! input |
| 7853 | +this is not the the title |
| 7854 | +{{DISPLAYTITLE:screen}} |
| 7855 | +!! result |
| 7856 | + |
| 7857 | +<p>this is not the the title |
| 7858 | +<a href="https://www.mediawiki.org/index.php?title=Template:DISPLAYTITLE:screen&action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a> |
| 7859 | +</p> |
| 7860 | +!! end |
| 7861 | + |
| 7862 | +!! test |
| 7863 | +Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE |
| 7864 | +!! options |
| 7865 | +showtitle |
| 7866 | +title=[[Screen]] |
| 7867 | +!! config |
| 7868 | +wgAllowDisplayTitle=false |
| 7869 | +!! input |
| 7870 | +this is not the the title |
| 7871 | +!! result |
| 7872 | + |
| 7873 | +<p>this is not the the title |
| 7874 | +</p> |
| 7875 | +!! end |
| 7876 | + |
| 7877 | + |
7810 | 7878 | TODO: |
7811 | 7879 | more images |
7812 | 7880 | more tables |