I have this link:
[[user1 | Foo:555-5555]]
[[user2 | Bar:555-5556]]
On each user page I have:
===UserName===
==PhoneNumber==
I want to make the link become automatic, something like this:
[[user1 | UserName:PhoneNumber]]
Is it possible?
I could not find a wiki entrance query, but using Semantic from MediaWiki as sugested by Tgr, it did the trick.
Related
I have a mermaid websequence diagram snippet in jekyll blog
```mermaid
sequenceDiagram
actor User
participant ABC
User->>ABC: Hello <-- i want this to be a hyperlink to a section on the same page
i tried this, but doesn't work
```mermaid
sequenceDiagram
actor User
participant ABC
User->>ABC: <a href=#somelink>Hello</a>
it shows the entire text as is, without converting the text Hello to a link.
There is an open issue on GitHub for this. So this feature seems not available for now. https://github.com/mermaid-js/mermaid/issues/1279
I would like to invoke this tag from within a template:
<splist
parent={{{1}}}
showparent=no
showpath=no
kidsonly=yes
liststyle=bar
debug=1
/>
As you can see a template variable needs to be filled in here. But unfortunately MW does not do that.
My question: How to accomplish this? How do I need to call the extension in order to get the variable data filled into parameter parent?
Use {{#tag:}} parser function:
{{#tag:splist
| parent={{{1}}}
| showparent=no
| showpath=no
| kidsonly=yes
| liststyle=bar
| debug=1
}}
See https://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous.
I was trying to display a list in html as label for radio button which should look like this:
| option1 |
| option2 |
The option number is not fixed,in my back-end, I use AngularJs to make the website dynamic.
My code looks like this:
{{opt}}
Now the result I have looks like this:
| option1 |
| option2 |
I know it is because I only create a but don't know how to fix it, could anyone give me some suggestions?
From my understanding of your question you are trying to get your label buttons to look like list items?
If so use this CSS to get the container of your radio boxes to look like list items:
.label {
display: list-item;
}
Also I would like to point out that Angular JS is NOT a back-end framework.
AngularJS is a structural (front end) framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly.
(Source)
You can read more about what Angular JS is over here.
You can also read more about Angular's Api over here.
Good luck and all the best.
I've got a website. After every article there is a big (7 sentences) preview for another article.
The problem is that google index this preview, and it makes my content duplicate.
How can I tell google not to read those previews?
One effective though less-than-ideal solution could be to load the random article preview with Javascript. It's similar to how some blogs have a "click to load comments" button - they don't want their blog being associated in Google searches with everything their commenters say.
Since you're keeping the primary content of each page the same, I don't think this would be a cloaking issue, but no guarantees.
You can do this by putting the preview section in a different span that would be hidden by Css properties and displayed using javascript at the time of page loading.Since the section is initially not displayed thus it would not be read by the search engine.
Dummy Html code
<span class="pgPreview">The preview for the next pages goes here </span>
Css code to hide it
.pgPreview {
display:none;
}
Javascript code to show it.
<script type="text/javascript">
$(document).ready(function()
{
$(".pgPreview").show();
}
</script>
Assuming that you have the jquery library included.
Reference
I know there used to be a system of labels such as:
<!-- googleon/googleoff: <index|anchor|link|all> -->
...but I do not know if that still works on these days...
also, I think it was only valid if you were using google custom search.
(do not really know for sure)
In any case, I can think in two ways to do what you need:
A) Hide content in iframes
B) Generate a text-image with that preview text
lolum dolimus
situs amen amdu etr --> normal content
nulusan ar sindh ew
_____________________
| lolum dolimus |
| situs amen amdu etr | --> iframe blocked with
| nulusan ar sindh ew | robots.txt file
---------------------
_____________________
| lolum dolimus | image with text
| situs amen amdu etr | --> unreadable to
| nulusan ar sindh ew | search engines
---------------------
Of course, both options are not completely infallible and depends solely on whether the search engine follow the directives in standardization and/or the ability to have OCR recognition.
My simple setup:
<div id="menuwrap">
<div id="menu">
<jdoc:include type="modules" name="menu" styles="" />
</div>
</div>
And
ul.menu {
display: inline-block;
}
because i need it to be centered.
This is displayed as follows (imagine it is centered on the screen):
Menu_Item_1 | Menu_Item_1 | Menu_Item_3
I would like to add a search box (a standard Joomla search module) as a menu item. That is:
Menu_Item_1 | Menu_Item_1 | Menu_Item_3 | Search...
I've tried to put the search module into another div, inside #menuwrap and float #menu to the left and #search to the right.
Menu_Item_1 | Menu_Item_1 | Menu_Item_3 | Search...
This is OK until resizing:
Menu_Item_1 | Menu_Item_1 |
Menu_Item_3 |
Search...
The #search just gets pushed under the #menu (on the third line - this is because the display of the ul is inline-block). The goal is to remain on the same line as the menu (i.e., second line), as follows:
Menu_Item_1 | Menu_Item_1 |
Menu_Item_3 | Search...
Any suggestions? Thanks.
If I'm understanding you correctly - you want to embed the search module itself within a menu - rather than linking to it from a menu item.
I think there are a number of ways to do this:
The easiest way is to fake it. Put a background on the div that contains your module position - publish two modules to that position (the menu and the search module) use css to make sure they float alongside each other.
Alternatively if you really need to embed the form within the same module I'd suggest creating a 'custom module chrome' to add the html of the search form to the output of any module you publish within a position that uses your custom module chrome style
Here is an article covering the basics - probably for an older version of Joomla - but as far as I can tell the principle holds:
http://docs.joomla.org/Applying_custom_module_chrome
If your goal is to add the search module as a menu item, then you need to make of it a component using this extension:
http://extensions.joomla.org/extensions/core-enhancements/embed-a-include/3810
You just need to place the module in a custom (probably hidden or nonexistent in a template) position and then you create a menuitem that points to the m2c component and use that position there.